python exception element not found

40

selenium how to handle element not found python -

try:
       elem = driver.find_element_by_xpath(".//*[@id='SORM_TB_ACTION0']")
       elem.click()
except nosuchelementexception:
       pass

Comments

Submit
0 Comments